package com.david.docker.controller;

import com.david.docker.domain.Tbuser;
import com.david.docker.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author David
 * @version V1.0
 * @Package com.david.docker.controller
 * @date 2021/6/20 18:00
 */
@RestController
public class UserController {
    @Resource
    private UserService userService;
    @GetMapping("/users")
    public List<Tbuser> queryUsers() {
        return this.userService.queryUsers();
    }
}
